﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Defender.AI.AStar
{
    public class NodePoint
    {
        //Fields
        private int _x;
        private int _y;

        public int X
        {
            get
            {
                return this._x;
            }
            set
            {
                this._x = value;
            }
        }
        public int Y
        {
            get
            {
                return this._y;
            }
            set
            {
                this._y = value;
            }
        }

        //ctor
        public NodePoint(int x, int y)
        {
            this._x = x;
            this._y = y;
        }

        //Methods
        public override string ToString()
        {
            return string.Format("{0}, {1}", this.X, this.Y);
        }
    }
}